package org.example.springboot05mybatis.model;

public class bi {
    private final String name;
    private final String value;

    private bi(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "bi{" +
                "name='" + name + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
    public static biBuiler builder() {
        return new biBuiler();
    }
    public static  class biBuiler {
        private String name;
        private String value;


        public biBuiler name(String name) {
            this.name = name;
            return this;
        }

        public biBuiler value(String value) {
            this.value = value;
            return this;
        }
        public bi build(){
            return new bi(name,value);
        }
    }
}
